package cn.rui.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 图片文件
 * @author 徽州大都督
 * @date 2021/05/18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbl_img")
public class ImgFile implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String imgName;

    private String loginName;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;

    @TableLogic
    private Integer deleted;
}
